<?php echo $this->Form->create('Bus', array('action' => 'edit')); ?>
			
<div class="Formulario">
	<fieldset id="Menu_Detail">

		<b>Detalhamento</b><br><br>

			<?php echo $this->Form->input('Bus.id', array('type' => 'hidden')); ?>
			

			<?php echo $this->Form->input('Bus.code', array('label' => 'Código da Linha: <br>','required'=>'required', 'id' => 'nome')); ?>
			<?php echo $this->Form->input('Bus.name', array('label' => 'Nome da Linha: <br>','required'=>'required', 'id' => 'nome')); ?>
			<?php 
				$hasStation = array();
				foreach ($stations as $station) {
					$k = $station['Station']['acronym'];
					$v = $station['Station']['name'];
					$hasStation[$k] = $v;
				 	# code...
				 };
				echo $this->Form->input('Bus.station_acronym', array('label'=> 'Estação: <br>', 'required'=>'required', 'options' => $hasStation)); ?>
			
			<?php 
				$hasTaxes = array();
				foreach ($taxes as $tax) {
					$k = $tax['Tax']['code'];
					$v = $tax['Tax']['code'];
					$hasTaxes[$k] = $v;
				 	# code...
				 };
				echo $this->Form->input('Bus.code_ticket', array('label'=> 'Tipo de Passagem (Anel): <br>', 'required'=>'required', 'options' => $hasTaxes)); ?>
			
			<?php $hasSEI = array('1' => 'Sim', '0' => 'Não');
				echo $this->Form->input('Bus.SEI', array('label'=> 'Integração: <br>', 'required'=>'required', 'options' => $hasSEI, 'default' => '0')); ?>



	</fieldset>
</div>

	
<?php echo $this->Form->end('Salvar Edição'); ?>